﻿using CheryABP.SystemSetitng;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace CheryABP.SystemSetting.MeneRoleAPI.Dto
{
    /// <summary>
    /// 查询角色输出信息实体
    /// </summary>
    public class RoleDtoOutput
    {
        public int id { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        public string role_name { get; set; }
        /// <summary>
        /// 角色类型：0超管；1系统管理员
        /// </summary>
        public int role_type { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string memo { get; set; }
        /// <summary>
        /// 写入时间
        /// </summary>
        public DateTime add_date { get; set; }

        /// <summary>
        /// 菜单和操作信息
        /// </summary>
        public List<Menu_Info> menu_info { get; set; }
    }
    /// <summary>
    /// 菜单信息
    /// </summary>
    public class Menu_Info
    {
        /// <summary>
        /// 菜单id
        /// </summary>
        public int menu_id { get; set; }
        /// <summary>
        /// 菜单操作
        /// </summary>
        public List<MenuActionOut> menu_action { get; set; }
    }

    /// <summary>
    /// 菜单对应的操作类型信息
    /// </summary>
    public class MenuActionOut
    {
       /// <summary>
       /// 操作类型
       /// </summary>
        public string action_type { get; set; }
    }
    
}
